<%@ page language="java" 
import="axb.*" 
import="java.sql.ResultSet"
contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
	<!DOCTYPE html>
	<html>
	<head>
		<meta charset="UTF-8">
		<title>测试</title>
	</head>
    <body>
		<% String sql1="delete from book where id=2";
		String sql2="update book set author = '撒得分' where id = 1";
		String sql3="select bookname from book where id=3";
		crud c=new crud();
		c.create("wer","asdf",10.11,"axbasdf");
		c.create("ertestessdf","asdf",10.10,"axbasdf");
		c.create("asdfsadfvcxvzxbvrty","asdsafasfasfafsdf",10.10,"axsadfbasdf");
		String result1= c.exec(sql1,"删除");
		String result2= c.exec(sql2,"更新");
		ResultSet rs=c.query(sql3);
		String bookinfo="";
		while(rs.next()){
			bookinfo=rs.getString("bookname");
		}
		
		%>
		<%=result1%><br>
		<%=result2%><br>
		<%=bookinfo%>
    </body>
    </html>